package com.stool.seconds.kill.api.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.stool.seconds.kill.api.OrderService;

import javax.annotation.Resource;

// 需要注意 这里使用的是dubbo的Service注解
@Service
public class OrderServiceImpl implements OrderService {

    @Resource(name = "DBOrderService")
    private com.stool.seconds.kill.service.OrderService orderService;

    @Override
    public int createWrongOrder(int sid) {
        return orderService.createWrongOrder(sid);
    }
}
